home *** CD-ROM | disk | FTP | other *** search
/ PC World 2008 February (DVD) / PCWorld_2008-02_DVD.iso / v cisle / PHP / PHP.exe / xampp-win32-1.6.5-installer.exe / phpMyAdmin / libraries / header_http.inc.php < prev    next >
Encoding:
PHP Script  |  2007-12-20  |  755 b   |  28 lines

  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4.  *
  5.  * @version $Id: header_http.inc.php 10142 2007-03-20 10:32:13Z cybot_tm $
  6.  */
  7.  
  8. /**
  9.  *
  10.  */
  11. if (isset($_REQUEST['GLOBALS']) || isset($_FILES['GLOBALS'])) {
  12.     die("GLOBALS overwrite attempt");
  13. }
  14.  
  15. /**
  16.  * Sends http headers
  17.  */
  18. $GLOBALS['now'] = gmdate('D, d M Y H:i:s') . ' GMT';
  19. header('Expires: ' . $GLOBALS['now']); // rfc2616 - Section 14.21
  20. header('Last-Modified: ' . $GLOBALS['now']);
  21. header('Cache-Control: no-store, no-cache, must-revalidate, pre-check=0, post-check=0, max-age=0'); // HTTP/1.1
  22. header('Pragma: no-cache'); // HTTP/1.0
  23. if (!defined('IS_TRANSFORMATION_WRAPPER')) {
  24.     // Define the charset to be used
  25.     header('Content-Type: text/html; charset=' . $GLOBALS['charset']);
  26. }
  27. ?>
  28.